import request from '@/utils/request'

export default {
   
    //1.添加小节
    addVideo(eduVideo) {
        return request({
            url: `/eduservice/video/addVideo`,
            method: 'post',
            data: eduVideo
        })
    },
    //2.删除小节TODO
    deleteVideo(videoId) {
        return request({
            url: `/eduservice/video/${videoId}`,
            method: 'delete'
        })
    },
    //2.1删除视频
    deleteAliyunvod(id) {
        return request({
            url: `/eduvod/video/removeAlyVideo/${id}`,
            method: 'delete'
        })
    },
    //3.修改小节
    updateVideo(eduVideo) {
        return request({
            url: `/eduservice/video/updateVideo`,
            method: 'post',
            data: eduVideo
        })
    },
    //4.根据小节id查询_修改时数据回显
    getVideoInfo(videoId) {
        return request({
            url: `/eduservice/video/getVideoInfo/${videoId}`,
            method: 'get'
        })
    },

}

